package com.citycloud.ccuap.tc.yq.repository;
import java.util.List;

import org.springframework.data.mybatis.repository.support.MybatisRepository;
import org.springframework.stereotype.Repository;

import com.citycloud.ccuap.tc.yq.entity.MetaTableCate;

/**
 * view数据库操作
 * @author sufeng
 *
 */

@Repository
public interface MetaTableCateRepository extends MybatisRepository<MetaTableCate, String> {

    List<MetaTableCate> findByPidAndIsDeletedOrderByCreatedate(String pid,boolean isDeleted);

    List<MetaTableCate> findByPidIsNullAndIsDeletedOrderByCreatedate(boolean isDeleted);
    
    List<MetaTableCate> findByIsDeletedOrderByCreatedate(boolean isDeleted);

	List<MetaTableCate> findByIsDeletedAndSpaceIdOrderByCreatedate(boolean isDeleted,String spaceId);

}